<?php
/**
 * Created by PhpStorm.
 * User: zzw
 * Date: 17-3-16
 * Time: 下午4:53
 */
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Long_article_model extends MY_Model
{
    protected $table = 'long_article';
    public function set($id, $arr) {
        $this->db->set($arr[0],$arr[1],false)
            ->where(array('id' => $id))
            ->update($this->table);
        return $this->db->affected_rows();
    }
}